package asteroids.model.programs.Expression;

import asteroids.model.programs.Type;
/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public abstract class EntityComparison extends BinaryBooleanExpression {

	public EntityComparison(int line, int column, Expression e1, Expression e2)
			throws IllegalArgumentException {
		super(line, column, e1, e2);
	}


	@Override
	public boolean canHaveAsExpression(Expression e) {
		if(e instanceof VariableLiteral || e instanceof NullLiteral)
			return true;
		return e.getType().getType()==Type.AllType.ENTITY;
	}

}
